package com.csliubo.eclipse.plugin.sqlgenerator.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import com.csliubo.eclipse.plugin.sqlgenerator.Activator;
import com.csliubo.eclipse.plugin.sqlgenerator.constants.OutputFormat;


/**
 * 设置默认值
 * 
 * @author liubo.cs@hotmail.com
 * @version 1.0
 * @date 2011-3-5
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

    public void initializeDefaultPreferences() {
        IPreferenceStore store = Activator.getDefault().getPreferenceStore();
        store.setDefault(PreferenceConstants.DB_PASSWORD, "alibaba1949");
        store.setDefault(PreferenceConstants.DB_USER, "alibaba1949");
        store.setDefault(PreferenceConstants.JDBC_CONNECTION_URL,
                         "jdbc:oracle:thin:@10.20.36.20:1521:oindev");
        store.setDefault(PreferenceConstants.JDBC_DRIVER_CLASS, "oracle.jdbc.OracleDriver");
        store.setDefault(PreferenceConstants.OUTPUT_FORMAT, OutputFormat.EXCEL.getValue());
    }

}
